package com.springboot.learn.springbootsecurity.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wtcode
 * @Description
 * @date 2025/3/19 - 18:23
 */
@RestController
@RequestMapping("/hello")
public class HelloController {

    @GetMapping("/{msg}")
    public String Hello(@PathVariable("msg") String msg){
        return "hello:" + msg;
    }

    @GetMapping("/hello")
    public String hello(){
        return "hello security";
    }

    @GetMapping("/say")
    public String say(){
        return "say security";
    }

}
